{extend name="Admin@Public/layout" /}
{block name="content"}
<div class="page">
	<div class="fixed-bar">
		<div class="item-title">
		  <div class="subject">
		    <h3>模型分类管理</h3>
		    <h5>所有后台模型索引及管理</h5>
		  </div>
		</div>
	</div>
	<!-- 操作说明 -->
	<div class="explanation" id="explanation">
		<div class="title" id="checkZoom"><i class="icon iconfont icon-dengpao"></i>
		  <h4 alt="提示相关设置操作时应注意的要点" class="itip">操作提示</h4>
		  <span id="explanationZoom" alt="收起提示" class="itip"></span>
		</div>
		<ul>
		   <li>暂无</li>
		</ul>
	</div>
	<!-- 表格 -->
	<div class="table_list">
		<div class="mDiv"><div class="ftitle"><h3>管理员列表</h3><h5></h5></div></div>
		<div class="hDiv">
		    <table width="100%">
		    <thead>
		      <tr>
		          <td width="50" align="center">模型ID</td>
		          <td width="150" class="handle" align="center">管理操作</td>
		          <td width="130" align="center">模型名称</td>
		          <td width="80" align="center">数据表</td>
		          <td width="300" align="center">描述</td>
		          <td width="70" align="center">数据量</td>
		          <td width="70" align="center">状态</td>
		      </tr>
		    </thead>
		    </table>
		</div>

		<div class="tDiv">
		  <div class="tDiv2">
		    <div class="fbutton">
		        <div class="add"><span><i class="icon iconfont icon-moxing"></i><a href="{:url('content/models/add')}">添加模型</a></span></div>
		    </div>
		  </div>
		  <div style="clear:both"></div>
		</div>

		<div class="bDiv">
			<table width="100%">
			<tbody>
		        {volist name="data" id="vo"}
		        <tr>
		          <td width="50" align="center">{$vo['modelid']}</td>
		          <td width="150" align="center" class="handle">
		            <a class="btn red confirm-del" href="{:url('models/delete',array('modelid'=>$vo['modelid']))}"><i class="icon iconfont icon-shanchu"></i>删除</a>
		            <span class="btn"><em><i class="icon iconfont icon-shezhi"></i>设置<i class="arrow"></i></em>
		            <ul>
		                <li><a href="">字段管理</a></li>
		                <li><a href="">模型修改</a></li>
		                <li><a href="{:url('content/models/disabled',array('modelid'=>$vo['modelid']))}">{if $vo['disabled'] == 0}模型禁用{else}<font color="#FF0000">模型启用</font>{/if}</a></li>
		                <li><a href="">导出模型</a></li>
		            </ul>
		            </span></td>
		          <td width="130" align="center">{$vo['name']}</td>
		          <td width="80" align="center">{$vo['tablename']}</td>
		          <td width="300" align="center">{$vo['description']}</td>
		          <td width="70" align="center"></td>
		          <td width="70" align="center">{if condition="$vo['disabled'] eq '1' "}
		               <span class="no"><i class="icon iconfont icon-iconfontcuowu2"></i>禁用</span>
		               {else /}
		               <span class="on"><i class="icon iconfont icon-zhengque1"></i>正常</span>
		               {/if}
		          </td>
		        </tr>
		        {/volist}
			</tbody>
			</table>
		</div>
	</div>
</div>
{/block}